class car:
    def __init__(self,id,number,color,weight,YXsize):
        self._id = id
        self._number = number
        self._color = color
        self._weight = weight
        self._YXsize = YXsize

    def run(self,function,size):
        print(f"这辆车的主要功能是{function},车的类型是{size}")

car_falali = car("001",4,"蓝色",2000,1200)
car_baoma = car("002",4,"红色",2300,1300)
car_lingmu = car("003",4,"黑色",1800,1000)
car_tuolaji = car("004",2,"黄色",7000,3000)

car_falali.run("比赛","跑车")
